<?php
include '../include/session.php';
include '../include/db.php';
include "../include/config.php";
include "../include/global.php";
$main = new main ();
include "../class/user.php";
$user = new user ();
include "../class/product.php";
$pro = new product ();
if ($_SESSION ["user_admin"] != '' && $_SESSION ["pass_admin"] != '') {
	$user->setusername ( $_SESSION ["user_admin"] );
	$user->setpassword ( $_SESSION ["pass_admin"] );
	$check_login = $user->checklogin ();
	if ($check_login == '')
		session_destroy ();
	$m = $_GET ["m"];
	$act = $_GET ["act"];
	include "templates/" . $m . "/" . $act . ".php";
}
?>